<template>
	<div></div>
</template>

<script>
import AMap from 'AMap'
export default {
  props: {
    map: {
      type: Object
    }
  },
  ready () {
    this.map.addControl(new AMap.ToolBar())
    this.map.plugin(['AMap.ToolBar'], () => {
      this.map.addControl(new AMap.ToolBar())
    })
    if (window.location.href.indexOf('&guide=1') !== -1) {
      this.map.setStatus({scrollWheel: false})
    }
  }
}

</script>